﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Vara.Utility
{
    public class VaraSqlEngineProvider
    {
        private VaraSqlEngineProvider()
        {
        }

        public static ISqlEngine Get()
        {
            return new VaraSqlEngineFacade();
        }

        public static ISqlEngine Get(string connectionStringName)
        {
            return new VaraSqlEngineFacade(connectionStringName);
        }

        public static ISqlEngineVariable GetParam()
        {
            return new VaraSqlEngineFacade.VaraSqlEngineFacadeVariable();
        }
        public static ISqlEngineVariable GetParam(string name, string value)
        {
            return new VaraSqlEngineFacade.VaraSqlEngineFacadeVariable(name,value);
        }
        public static ISqlEngineVariable GetParam(string name, object value)
        {
            return new VaraSqlEngineFacade.VaraSqlEngineFacadeVariable(name,value);
        }
        public static ISqlEngineVariable GetParam(string name, object value, SqlDbType type)
        {
            return new VaraSqlEngineFacade.VaraSqlEngineFacadeVariable(name, value,type);
        }
    }
}
